package com.hwd.gmall.list.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 搜索微服务远程调用feign接口
 *
 * @author 黄伟东/Victor
 * @date 2022/4/29 15:16
 */
@FeignClient(value = "service-list", path = "/api/search", contextId = "searchFeignClient")
public interface SearchFeignClient {

    /**
     * 商品搜索
     *
     * @param searchData 搜索关键词
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    @GetMapping
    Map<String, Object> search(@RequestParam Map<String, String> searchData);
}
